import request from "@/utils/request";

// 上传文件
export function upload(query = {}) {
  return request({
    url: '/file/upload',
    method: 'post',
    params: query
  })
}

// 删除文件
export function deleteFiles(fileIds) {
  return request({
    url: `/flight/file/${fileIds}`,
    method: "delete"
  })
}